package com.dly.blog.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dly.blog.meta.MetaObject;
import java.io.Serializable;
import java.io.Serial;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 菜单与权限关系
 * </p>
 *
 * @author DLY
 * @since 2024-11-15 10:32:15
 */
@Data
@TableName("blog_menu_permission")
@Schema(name = "MenuPermission", description = "菜单与权限关系")
public class MenuPermission implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @Schema(description = "菜单id")
    @TableField("menu_id")
    private String menuId;

    @Schema(description = "权限id")
    @TableField("permission_id")
    private String permissionId;
}
